package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


/**
 * ［首页］：版块列表、达人推荐、帖子列表
［首页］版块列表：妈妈关心等［后台会维护］，只在首页显示版块，一般推荐2个版块，一个版块下显示2个活动
［首页］达人推荐：固定三条推荐的，默认最新添加的三条记录
［首页］帖子列表：同帖子列表
 * @author wliu
 * edit tse
 */
public class MomentsHomeGetRecommends extends RudderResponse{
    
    private String memberId = "";
		
    
    private String avatar = "";
		
    
    private String nickname = "";
		
	
    /**
     * @return memberId
     */	
    public String getMemberId() { 
	    return this.memberId;
    };
	
	/**
     * @return memberId
     */	
    public void setMemberId(String memberId) { 
        this.memberId = memberId;
    };
    
    /**
     * @return avatar
     */	
    public String getAvatar() { 
	    return this.avatar;
    };
	
	/**
     * @return avatar
     */	
    public void setAvatar(String avatar) { 
        this.avatar = avatar;
    };
    
    /**
     * @return nickname
     */	
    public String getNickname() { 
	    return this.nickname;
    };
	
	/**
     * @return nickname
     */	
    public void setNickname(String nickname) { 
        this.nickname = nickname;
    };
    
	
        
    public static void filter(MomentsHomeGetRecommends moments) {
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
        if (moments.getNickname() == null) {
            moments.setNickname("");
        }
    }
}
